package de.openlaboratory.elib.model.system;

import java.io.Serializable;
import java.nio.file.Path;
import java.nio.file.Paths;

public class FileTreeDisplayNode implements Serializable
{
	/**
	 * 
	 */
	private static final long serialVersionUID = 3139302247245346777L;
	String file;
	String name;
	
	public FileTreeDisplayNode(Path file, String name)
	{
		this.file = file.toString();
		this.name = name;
	}
	
	public String toString()
	{
		return this.name;
	}

	public Path getFile()
	{
		return Paths.get(file);
	}

	public void setFile(Path file)
	{
		this.file = file.toString();
	}

	public String getName()
	{
		return name;
	}

	public void setName(String name)
	{
		this.name = name;
	}
}